OnCollisionFunction functions can be set by method setOnCollisionFunction and will be called when missile collides.